package za.um.td.state.client;

import com.jmex.game.state.BasicGameStateNode;
import com.jmex.game.state.GameState;

public class RenderStateNode extends BasicGameStateNode<GameState> {

	private static final String NAME = "RenderStateNode";
	private static RenderStateNode instance = null;

	private RenderStateNode() {
		super(NAME);
		attachChildren();
		activateAllChildren();
	}
	
	private void attachChildren() {
		attachChild(LevelRenderStateNode.getInstance());
	}

	public static RenderStateNode getInstance() {
		if (instance == null) {
			instance = new RenderStateNode();
		}
		return instance;
	}

}
